<template>
    <view>
        <cu-custom bgColor="bg-white" :isBack="true">
            <block slot="content">{{title}}</block>
        </cu-custom>
        <view class="padding-sm bg-white">
            <u-parse :content="article" ></u-parse>
            
        </view>
    </view>
</template>

<script>
    import uParse from '../common/u-parse/u-parse'
    export default {
        name: "RichText",
        components: {
            uParse
        },
        data () {
            return {
                title: '汽车票预订协议',
                article: '      '
            }
        },
		onLoad() {
			this.getData()
		},
        methods: {
           getData(){
			   let that = this
			   that.tui.request("api.ticket/agreementAll", "POST", {type: 3}, false, false, false).then((res) => {
			   	if (res.code == 1) {
			   		that.article = res.data.content
			   	}
			   }).catch((res) => {
			   
			   })
		   },
        }
    }
</script>

<style scoped>
    @import url("../common/u-parse/u-parse.css");
	page{background: #fff;}
</style>
